package com.xiubai.appforpda.entity;

import java.util.List;


public class LocationEntity {
    public int id;
    public String pid;

    // 位置编码
    public String loccode;
    // 位置名称
    public String locname;
    // 上级位置编码
    public String floccode;

    public boolean isSelected = false;

    public SQLPamLocationBean locationBean;

    public List<LocationEntity> locationBeans;


    @Override
    public boolean equals(Object obj) {
        if (obj instanceof LocationEntity) {
            LocationEntity bean = (LocationEntity) obj;
            return loccode.equalsIgnoreCase(bean.loccode);
        }
        return false;
    }
}
